package com.itydl.imageloader;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;

import com.itydl.imageloader.cache.impl.DoubleCache;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ImageView imageView = (ImageView) findViewById(R.id.iv_imageloader);
        ImageLoader imageLoader = new ImageLoader(new DoubleCache());
        imageLoader.display("http://00.imgmini.eastday.com/mobile/20171223/20171223153323_ca24eb8a4b00a380d7230b05ff3ef951_1_mwpm_03200403.jpg",imageView);
    }
}
